<?php

namespace app\common\model\auth;

use think\Model;

class AuthGroup extends Model
{
    public function view()
    {
        return $this->belongsToMany('AuthView', 'AuthGroupAccessView');
    }

    public function api()
    {
        return $this->belongsToMany('AuthApi', 'AuthGroupAccessApi');
    }
}
